﻿using System;
using System.Collections.Generic;
using System.Text;
using BCEntity.Common.BankCardPattern;

namespace BCData.Common.BankCardPattern
{
    public class BankCardPatternData : IBankCardPatternData
    {
        private readonly ISqlCommand command;

        public BankCardPatternData(ISqlCommand command)
        {
            this.command = command;
        }

        public IEnumerable<BankCardPatternEntity> ALL()
        {
            string sql = "SELECT BankCardPatternId,Reg,CardType,BankCode,BankName FROM bankcardpattern";
            return this.command.Query<BankCardPatternEntity>(sql, System.Data.CommandType.Text, null);
        }
    }
}
